package com.yykj.hospital.server.model.repository;

import com.yykj.common.enums.HospitalOnlineTypeEnum;
import com.yykj.hospital.server.model.entity.HospitalSettingOnline;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HospitalSettingOnlineRepository extends JpaRepository<HospitalSettingOnline,Integer> {

    List<HospitalSettingOnline> findAllByHospitalId(Integer hospitalId);

    HospitalSettingOnline findFirstByHospitalIdAndType(Integer hospitalId, HospitalOnlineTypeEnum type);

}
